﻿using mds.BaseFrameModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mds.NoSqlDatabase
{
   public interface IRedisProvider
    {
       T Get<T>(string key, String host, int port);
       OperationResult<bool> Save<K, KV>(K key, KV data, String host, int port);
       OperationResult<bool> Save<T>(T data, String host, int port) where T : class, new();
       OperationResult<bool> Delete(string key, String host, int port);
       OperationResult<bool> Deletes(List<string> keys, String host, int port);
       Dictionary<string, T> Gets<T>(List<string> keys, String host, int port);
    }
}
